package com.itheima.d02_linkedlist_stack;

import java.util.LinkedList;

public class Test {
    public static void main(String[] args) {
        //1.创建弹夹集合对象
        LinkedList<String> stack = new LinkedList<>();
        stack.add("子弹1");
        stack.add("子弹2");
        stack.add("子弹3");
        stack.add("子弹4");
        stack.add("子弹5");


        System.out.println(stack);
        System.out.println(stack);
        System.out.println(stack);
        System.out.println(stack);
        System.out.println(stack);
    }
}
